package it.univaq.mwt.fastmarket;

import it.univaq.mwt.fastmarket.business.model.Address;

import javax.ejb.Remote;

import java.util.Set;

@Remote
public interface AddressServiceRemote {
	
	Set<Address> getAllAddressesByIDUser(Long id) throws BusinessException;
		
	ResponseGrid<Address> findAllAddressesPaginated(RequestGrid requestGrid) throws BusinessException;
	
	Set<Address> getAllAddresses() throws BusinessException;
	
	void create(Address address) throws BusinessException;
	
	Address findAddressByID(Long id) throws BusinessException;
	
	void update(Address address) throws BusinessException;
	
	void delete(Address address) throws BusinessException;
	
	String ping(String echo);

}